import { h } from 'vue'
import { IconQuanXian, IconChengYuan } from '@Assets/fonts/svg'

export default () => {
  let _root = {
    path: 'role',
    component: { template: '<div><router-view></router-view></div>' },
    meta: { cn: '权限' },
    name: 'role',
    icon: h(IconQuanXian),
    children: [
      {
        path: 'rolelist',
        icon: h(IconChengYuan),
        component: () => import(/* webpackChunkName: "role" */ '@Page/role'),
        meta: { cn: '权限列表' },
        name: 'roleList',
      },
      {
        path: 'member',
        icon: h(IconChengYuan),
        component: () =>
          import(/* webpackChunkName: "role" */ '@Page/role/member'),
        meta: { cn: '成员列表' },
        name: 'member',
      },
    ],
  }

  return _root
}
